-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use commonlyUsedRanges from Kibana Settings instead of a constant value #352 #49
Conversation
Note that although this pull request fixes the Issue #41, this plugin currently breaks the usage of relative dates (date math), so the issue opendistro-for-elasticsearch/kibana-reports#353 (still on the old repository, asked to @zhongnansu move it) must be fixed to this PR make sense. |
Can someone give some attention here to merge this fix out? I'm pretending to fully migrate to opensearch but this is preventing me from doing it. |
@iget-master sorry for not able to follow up in time. The opendistro-for-elasticsearch/kibana-reports#353 has been fixed recently. We can move on with this PR. @joshuali925 Josh, could you guide him for this PR? Since we recently added uisettings for date_format, does he need to do some extra work to be in consistent with your change? If not, we just ask him to resolve the conflicts and we'll review the PR |
@@ -203,6 +203,15 @@ export function TimeRangeSelect(props) { | |||
setIsLoading(false); | |||
}; | |||
|
|||
const commonlyUsedRanges = uiSettings! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iget-master thanks for the PR. We recently added support for dateFormat
in uiSettings. There is a module (not a prop since some code will run in discover) to expose the ui settings client https://github.com/opensearch-project/dashboards-reports/blob/93d885c641c8c7fc8beeb081bee6ffd30b44f73b/dashboards-reports/public/components/utils/settings_service.ts#L16-L23
I believe the only change needed is here, and uiSettings can be called this way
https://github.com/opensearch-project/dashboards-reports/blob/93d885c641c8c7fc8beeb081bee6ffd30b44f73b/dashboards-reports/public/components/main/main_utils.tsx#L199
Could you update the PR please? thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@iget-master any thoughts?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's ok. I'm a little busy next days, but asap i can update the pr
closing an older PR no coverage |
Signed-off-by: Rupal Mahajan <maharup@amazon.com> (cherry picked from commit 9ce6c2576432e33bf9e570d96eafe848d8ef705b) Co-authored-by: Rupal Mahajan <maharup@amazon.com>
Description
uiSettings
is being called correctlyuiSettings
Issues Resolved
#41
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.